<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/ajax.js"></script>
</head>

<body>
    <select name="" id="province">
        <!-- <option value="">请选择省份</option> -->
        <!-- <option value="">北京</option>
        <option value="">上海</option>
        <option value="">湖北</option>
        <option value="">湖南</option> -->
    </select>
    <select name="" id="city">
        <option value="">请选择市</option>
        <!-- <option value="">朝阳</option>
        <option value="">海淀</option>
        <option value="">上地</option>
        <option value="">沙河</option> -->
    </select>
</body>
<script>
    var provinceSel = document.getElementById("province");
    var citySel = document.getElementById("city");

    // $.ajax({
    //     type: "get",
    //     url: "http://api.yytianqi.com/citylist/id/2",  // 三级联动
    //     dataType: "json",
    //     success(data) {
    //         console.log(data);
    //     }
    // })

    // $.ajax({
    //     type: "get",
    //     url: "http://api.yytianqi.com/citylist/id/3",
    //     dataType: "json",
    //     success(data) {
    //         console.log(data);
    //     }
    // })


</script>

</html>